import request from "@/utils/request";

// 查询吊车列列表
export function listDetail(query) {
  return request({
    url: "/system/detail/list",
    method: "get",
    params: query,
  });
}

// 查询吊车列详细
export function getDetail(id) {
  return request({
    url: "/system/detail/" + id,
    method: "get",
  });
}

// 新增吊车列
export function addDetail(data) {
  return request({
    url: "/system/detail",
    method: "post",
    data: data,
  });
}

// 修改吊车列
export function updateDetail(data) {
  return request({
    url: "/system/detail",
    method: "put",
    data: data,
  });
}

// 删除吊车列
export function delDetail(id) {
  return request({
    url: "/system/detail/" + id,
    method: "delete",
  });
}

// 下载吊车列模板
// export function importTemplate() {
//   return request({
//     url: "/system/detail/importTemplate",
//     method: "get",
//   });
// }
